﻿<Window x:Class="FM.矩阵.控制.Views.主窗口"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:fm="clr-namespace:FM;assembly=FM"
        xmlns:regions="http://www.codeplex.com/CompositeWPF"
        Title="{Binding 标题}"
        Width="800"
        Height="600"
        FontSize="{Binding 字体大小}">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/FM.矩阵.控制;component/Themes/Generic.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <ContentControl Grid.Row="0"
                        Grid.ColumnSpan="3"
                        regions:RegionManager.RegionName="{x:Static fm:布局位置.上}" />
        <ContentControl Grid.Row="1"
                        Grid.Column="0"
                        regions:RegionManager.RegionName="{x:Static fm:布局位置.左}" />
        <GridSplitter Grid.Row="1"
                      Grid.Column="1"
                      HorizontalAlignment="Center"
                      VerticalAlignment="Stretch"
                      Background="{x:Null}" />
        <ContentControl Grid.Row="1"
                        Grid.Column="2"
                        regions:RegionManager.RegionName="{x:Static fm:布局位置.中}" />
        <GridSplitter Grid.Row="1"
                      Grid.Column="3"
                      HorizontalAlignment="Center"
                      VerticalAlignment="Stretch"
                      Background="{x:Null}" />

        <ContentControl Grid.Row="1"
                        Grid.Column="4"
                        regions:RegionManager.RegionName="{x:Static fm:布局位置.右}" />
        <ContentControl Grid.Row="2"
                        Grid.Column="0"
                        Grid.ColumnSpan="3"
                        regions:RegionManager.RegionName="{x:Static fm:布局位置.下}" />
    </Grid>
</Window>
